import { pget, postJson, postFileByFormData } from '@/utils/req';
import { modalApi } from '@/utils/modalReq';

// 模型管理分页
export function getTableList(data: any) {
  return postJson(`${modalApi.workflow}/process/processModelList`, data);
}

// 部署流程
export function editConfigure(data: any) {
  return postFileByFormData(
    `${modalApi.workflow}/process/deploymentModelId`,
    data,
  );
}

// 删除流程
export function deleteModel(data: { id: string }) {
  return pget(`${modalApi.workflow}/process/deleteProcessModel`, data);
}
